package com.wenjie.original.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import com.wenjie.original.entity.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


@Data
@Table("sys_diff_datasource")
@ApiModel("数据库表")
public class SysDiffDatasource extends BaseEntity {

    @Id(keyType = KeyType.Generator, value = KeyGenerators.snowFlakeId)
    @ApiModelProperty("主键ID")
    private Long sysDiffDatasourceId;

    @ApiModelProperty("同步ID")
    private Long sysDiffSyncId;

    @ApiModelProperty("数据库名称")
    private String databaseName;

    @ApiModelProperty("数据源名称")
    private String name;

    @ApiModelProperty("数据源描述")
    private String description;

    @ApiModelProperty("连接地址")
    private String url;

    @ApiModelProperty("数据源类型：mysql、oracle、pgsql、sqlserver、tidb、...")
    private String type;

    @ApiModelProperty("驱动的ClassName")
    private String driverClassName;

    @ApiModelProperty("驱动文件")
    private String driverFile;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("目录")
    private String catalog;

    @ApiModelProperty("模式")
    private String schema;

    @ApiModelProperty("密码")
    private String tags;

    @ApiModelProperty("表数量")
    private Integer tableCount;

}